home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak Vol E-12
/
Vol E-12.iso
/
games
/
barbie
/
intro.swf
/
scripts
/
DefineButton2_43
/
BUTTONCONDACTION on(release, dragOver).as
< prev
Wrap
Text File
|
2012-05-21
|
1KB
|
36 lines
on(release, dragOver){
stopDrag();
this.swapDepths(_root.codejump.codeMC.levelHeight++);
this._xscale -= _root.codejump.codeMC.growAmount;
this._yscale -= _root.codejump.codeMC.growAmount;
overPlace = this._droptarget.substring(17,this._droptarget.length - 1);
trace("overplace" + overPlace);
trace(this._droptarget);
if(overPlace == "codePlace")
{
trace("rrrrrrrr");
dropedName = this._droptarget.substring(17,this._droptarget.length);
dropedNumber = this._droptarget.substring(26,this._droptarget.length);
dropedNameX = eval("_root.codejump." + dropedName)._x;
dropedNameY = eval("_root.codejump." + dropedName)._y;
_root.codejump.codeMC.valueOfStuff(sendNumber,dropedNumber);
this._x = dropedNameX;
this._y = dropedNameY;
}
else
{
this._x = _root.codejump.codeMC.currentObjX[sendNumber];
this._y = _root.codejump.codeMC.currentObjY[sendNumber];
i = 0;
while(i < 4)
{
if(_root.codejump.codeMC.holder[i] == sendNumber)
{
trace("hell2o" + sendNumber);
_root.codejump.codeMC.holder[i] = "";
}
i++;
}
}
}